package com.onetime.mall.trading.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.onetime.mall.trading.entity.FavoriteEntity;
import com.onetime.mall.trading.utils.PageUtils;
import com.onetime.mall.trading.vo.FavoriteProductsVo;

import java.util.List;
import java.util.Map;

/**
 * 收藏信息表
 *
 * @author liyixuan
 * @email liyixuan106@163.com
 * @date 2022-03-26 19:38:29
 */
public interface FavoriteService extends IService<FavoriteEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean addFavorite(FavoriteEntity favoriteEntity);

    Integer isFavorite(Long userId, Long idleId);

    boolean deleteFavorite(Long id);

    List<FavoriteProductsVo> getAllFavorite(Long userId);
}

